﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

using Domain.Model;

using Domain.Model.Abstract;

namespace Presentation.Models
{
    public class SubprojectViewModel
    {
        #region Models

        public Form Form { get; set;}

        public Subproject Subproject { get; set; }

        public List<SelectListItem> StatusItems = new List<SelectListItem> 
        {
            new SelectListItem {Selected = true, Text = "Red", Value = ProjectItemStatus.STATUS_RED},
            new SelectListItem {Selected = true, Text = "Orange", Value = ProjectItemStatus.STATUS_ORANGE},
            new SelectListItem {Selected = true, Text = "Green", Value = ProjectItemStatus.STATUS_GREEN}
        };

        public SubprojectTask Task { get; set; }

        public int ProjectId { get; set; }
        public string errmsg { get; set; }
        public int errindex { get; set; }
        public SubprojectViewModel()
        {
            ProjectId = 0;
        }

        #endregion
    }
}